<?
define('BASE_DIR', dirname(dirname(__FILE__)) );

include BASE_DIR.'/config/server.php';
include BASE_DIR.'/lib/inc_admin.php';

session_start();
setcookie(session_name(), session_id(), time() + 3600, "/", '.'.HOST_NAME_SHORT);

header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
header ("Content-type: text/html; charset=windows-1251");

$GLOBALS['not_enlarge_thumbs']=true;

$CONFIG = parse_ini_file(BASE_DIR."/config/application.ini", true);

$root = dirname(dirname(__FILE__));
if($root[strlen($root)-1]!="/") $root.="/";
$_SERVER['DOCUMENT_ROOT'] = $root ;
$public_dir = "data/";

//$fckpath    = "../fck/fckeditor.php";
//$fckpath2   = "../fck/";
//include $fckpath;

$admin_skin = "default";

$admin_menu = 
array(
	array("Управление",
		array(
			array("managers.php", "Пользователи"),
			array("sites.php", "Сайты"),
			array("backup.php", "Резервная копия"),
		),
	),
);
